﻿@model IEnumerable<Domain.Entity.NewsArticle>

@{
    ViewBag.Title = "News";
}

<h2 class="title @Html.GetColor(Request.Cookies["color"])">News</h2>


@foreach (var item in Model) {
    <div id="titlelessItem">
        <div class = "item">
            <h1>@Html.ActionLink(item.Title,"Details","News",new { id=item.Id }, null)</h1>
            <h4>
                @Html.DisplayFor(modelItem => item.PostedDate)
            </h4>
        
        
            <h3>@Html.DisplayFor(modelItem => item.Abstract)</h3>
        
        </div>
    </div>
}